package com.linux.dataacess.db.model;

public class LinuxTitle {
    private Integer tId;

    private String cmdTitle;

    private String cmdDescription;

    public Integer gettId() {
        return tId;
    }

    public void settId(Integer tId) {
        this.tId = tId;
    }

    public String getCmdTitle() {
        return cmdTitle;
    }

    public void setCmdTitle(String cmdTitle) {
        this.cmdTitle = cmdTitle == null ? null : cmdTitle.trim();
    }

    public String getCmdDescription() {
        return cmdDescription;
    }

    public void setCmdDescription(String cmdDescription) {
        this.cmdDescription = cmdDescription == null ? null : cmdDescription.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        LinuxTitle other = (LinuxTitle) that;
        return (this.gettId() == null ? other.gettId() == null : this.gettId().equals(other.gettId()))
            && (this.getCmdTitle() == null ? other.getCmdTitle() == null : this.getCmdTitle().equals(other.getCmdTitle()))
            && (this.getCmdDescription() == null ? other.getCmdDescription() == null : this.getCmdDescription().equals(other.getCmdDescription()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((gettId() == null) ? 0 : gettId().hashCode());
        result = prime * result + ((getCmdTitle() == null) ? 0 : getCmdTitle().hashCode());
        result = prime * result + ((getCmdDescription() == null) ? 0 : getCmdDescription().hashCode());
        return result;
    }
}